package cn.thoughtworks.school.programCenter.entities.dto;

import lombok.*;

@Setter
@Getter
@NoArgsConstructor
@AllArgsConstructor
@Builder
public class UserDto {
    private String email;
    private String password;
    private String userName;
    private Long creatorId;

    public static UserDto build(String userName, String password, String email,Long creatorId) {
        return UserDto.builder()
            .email(email)
            .userName(userName)
            .password(password)
            .creatorId(creatorId)
            .build();
    }


}
